class typecasting{
            public static void main(String[] args)
      {
       //typecasting

       String s = "1000.22";
       double doubleValue = Double.parseDouble(s);
       System.out.println(doubleValue);
        
       String eid = "8";
       int intvalue = Integer.parseInt(eid);
       System.out.println(intvalue);
      
       long l = 10;
       int i = (int)l;
       System.out.println(i);

       float f = (float)10.1;
       int a = (int)f;
       System.out.println(a);
         
       double z = -1.79769313;
       int y = (int)f;
       System.out.println(y);
       
       

       // Leap year

       int year=20013;
       if((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
       System.out.println(" year "+year+ " is a leap year");
       else
       System.out.println(" year "+year+ " is not a leap year");
       System.out.println(a++);
       System.out.println(++a);
       System.out.println(a++);
       System.out.println(a--);
             
       // fahrenhiet to Celius

       double q = 98;
       double w = (5.0 / 9) * (q - 32);
       System.out.println("Fahrenhiet " + q + " is " + w + " in celius ");


}
}